package POJO.Model;



import org.springframework.stereotype.Component;

@Component
public class PageResponseModel<T>{
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Pagination getPagination() {
        return pagination;
    }

    public void setPagination(Pagination pagination) {
        this.pagination = pagination;
    }

    public  int  code;
    public  String  msg;
    T data;
    Pagination pagination;

    /*各个参数设置成空*/
    public  void  setNull()
    {
        this.code=0;
        this.msg=null;
        this.data=null;
        this.pagination=null;
    }


}
